package me.hellp.helloworld.design.chain;

/**
 * 抽象处理者角色
 * 
 * @author linxm
 *
 */
public abstract class ConsumeHandler {
    private ConsumeHandler nextHandler;

    public ConsumeHandler getNextHandler() {
        return nextHandler;
    }

    public void setNextHandler(ConsumeHandler nextHandler) {
        this.nextHandler = nextHandler;
    }

    /** user申请人 free报销费用 */
    public abstract void doHandler(String user, double free);
}

